export default {
  requiredPrivateInfos: ['getLocation'],
  permission: {
    'scope.userLocation': {
      desc: '你的位置信息将用于小程序位置接口的效果展示'
    }
  },
  pages: ['pages/create/index', 'pages/farmland/index', 'pages/equipment/index', 'pages/my/index'],
  window: {
    backgroundColor: '#fff',
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black'
  },
  subpackages: [
    {
      root: 'pagesSub/search',
      pages: ['index']
    },
    {
      root: 'pagesSub/login',
      pages: ['index']
    },

    {
      root: 'pagesSub/detail',
      pages: ['index']
    },
    {
      root: 'pagesSub/farmlandDetail',
      pages: ['index']
    },
    {
      root: 'pagesSub/history',
      pages: ['list/index', 'item/index']
    },
    {
      root: 'pagesSub/analysis',
      pages: ['index']
    },
    {
      root: 'pagesSub/my',
      pages: ['msg/index', 'set/sqyj/index', 'set/cqyj/index','xieyi/index','about/index','changepwd/index']
    },
    {
      root: 'pagesSub/valve',
      pages: ['record/index', 'operation/index']
    }
  ],
  tabBar: {
    color: '#7A7E83',
    selectedColor: '#0C8422',
    borderStyle: 'black',
    backgroundColor: '#fff',
    list: [
      {
        pagePath: 'pages/create/index',
        iconPath: 'assets/tabbar/thing.png',
        selectedIconPath: 'assets/tabbar/thing-active.png',
        text: '首页'
      },
      {
        pagePath: 'pages/farmland/index',
        iconPath: 'assets/tabbar/canopy.png',
        selectedIconPath: 'assets/tabbar/canopy-active.png',
        text: '农田'
      },
      {
        pagePath: 'pages/equipment/index',
        iconPath: 'assets/tabbar/manage.png',
        selectedIconPath: 'assets/tabbar/manage-active.png',
        text: '设备'
      },
      {
        pagePath: 'pages/my/index',
        iconPath: 'assets/tabbar/mine.png',
        selectedIconPath: 'assets/tabbar/mine-active.png',
        text: '我的'
      }
    ]
  },
  plugins: {
    echarts: {
      version: '2.1.1',
      provider: 'wx1db9e5ab1149ea03'
    }
  },

}
